package com.sisyphus.mock.data.entities;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "users")
public class UserEntity {

    @PrimaryKey(autoGenerate = true)
    public Long id;

    @ColumnInfo(name = "email")
    public String email;

    @ColumnInfo(name = "token")
    public String token;

    @ColumnInfo(name = "password")
    public String password;

    @ColumnInfo(name = "nickname")
    public String nickname;

    @ColumnInfo(name = "avatar")
    public String avatar;


    public UserEntity() {
    }

    @Ignore
    public UserEntity(String email, String token, String password, String nickname, String avatar) {
        this.email = email;
        this.token = token;
        this.password = password;
        this.nickname = nickname;
        this.avatar = avatar;
    }

}
